package com.aaa.examine.controller;


import com.aaa.entity.CheckItem;

import com.aaa.examine.feign.ItemFeign;
import com.aaa.vo.Result;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;

/**
 * IntelliJ IDEA
 * CheckItemController
 * 好好学习天天练
 * 结果
 *
 * @author caojianbin
 * 2023/3/24
 */
@RestController
@RequestMapping("/examine")
public class CheckItemController {


    @Autowired
    private  ItemFeign itemFeign;
    //查询所有检查项
    @GetMapping("list")
    public Result<List<CheckItem>> checkList() {
        return new Result<>(200,"查询成功",itemFeign.getItemNameList());
    }



}
